package com.matt.repository;

import com.matt.domain.Atta;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Describle This Class Is
 * @Author ZengMin
 * @Date 2018/12/12 16:54
 * @Company Matt
 */
public interface AttaRepository extends JpaRepository<Atta, String> {

    Page findAllByCidAndAttaType(String cid, Integer attaType, Pageable pageable);

    Page findAllByCid(String cid, Pageable pageable);


}
